<!DOCTYPE html>
<!-- saved from url=(0035)http://b2b2c.wrtx.cn/shop/index.php -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>确认订单</title>
<meta name="keywords" content="">
<meta name="description" content="">


<style type="text/css">
.nc-appbar-tabs a.compare { display: none !important;}
</style>
<link href="/home/css/base.css" rel="stylesheet" type="text/css">
<link href="/home/css/home_cart.css" rel="stylesheet" type="text/css">
<link href="/home/css/font-awesome.min.css" rel="stylesheet">
<script src="/home/js/jquery.js"></script>
<script src="/home/js/common.js"></script>
<script src="/home/js/jquery.ui.js"></script>
<script src="/home/js/jquery.validation.min.js"></script>
<script src="/home/js/jquery.poshytip.min.js"></script>
<script type="text/javascript" src="/home/js/dialog.js" id="dialog_js" charset="utf-8"></script><link href="/home/css/dialog.css" rel="stylesheet" type="text/css">
<script src="/home/css/goods_cart.js"></script>
<style id="poshytip-css-tip-yellowsimple" type="text/css">div.tip-yellowsimple{visibility:hidden;position:absolute;top:0;left:0;}div.tip-yellowsimple table, div.tip-yellowsimple td{margin:0;font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;font-variant:inherit;}div.tip-yellowsimple td.tip-bg-image span{display:block;font:1px/1px sans-serif;height:10px;width:10px;overflow:hidden;}div.tip-yellowsimple td.tip-right{background-position:100% 0;}div.tip-yellowsimple td.tip-bottom{background-position:100% 100%;}div.tip-yellowsimple td.tip-left{background-position:0 100%;}div.tip-yellowsimple div.tip-inner{background-position:-10px -10px;}div.tip-yellowsimple div.tip-arrow{visibility:hidden;position:absolute;overflow:hidden;font:1px/1px sans-serif;}</style>
</head>
<body>
  <header class="ncc-head-layout">
    <div class="site-logo"><a href="http://b2b2c.wrtx.cn/shop"><img src="/home/images/04961499682045947.png" class="pngFix"></a></div>
        <ul class="ncc-flow">
     
    </ul>
      </header>
<div class="ncc-wrapper">

  <script src="/home/images/common_select.js"></script>
<form method="post" id="order_form" name="order_form" action="/toOrder">
  {{csrf_field()}}
<div class="ncc-main">
  <div class="ncc-title">
    <h3>填写核对购物信息</h3>
    <h5>请仔细核对填写收货、发票等信息，以确保物流快递及时准确投递。</h5>
  </div>
<div class="ncc-receipt-info current_box">
  <div class="ncc-receipt-info-title">
    <h3>收货人信息</h3>
    <a href="javascript:void(0)" nc_type="buy_edit" id="edit_reciver" style="display: none;">[修改]</a></div>
  <div id="addr_list" class="ncc-candidate-items">
<ul>
    <li class="receive_add addr_item">
    <label for="add_addr">填写地址</label>
        &nbsp;<label>></label>
      </li>
  <div id="add_addr_box"><div class="ncc-form-default">
    <dl>
      <dt><i class="required">*</i>收货人姓名：</dt>
      <dd>
        <input type="text" class="text w100" name="username" maxlength="20" id="true_name" value="">
      </dd>
    </dl>
    <dl>
      <dt><i class="required">*</i>详细地址：</dt>
      <dd>
        <input type="text" class="text w500" name="address" id="address" maxlength="80" value="">
        <p class="hint">请填写真实地址，不需要重复填写所在地区</p>
      </dd>
    </dl>
    <dl>
      <dt> <i class="required">*</i>手机号码：</dt>
      <dd>
        <input type="text" class="text w200" name="mobile" id="mob_phone" maxlength="15" value="">
      </dd>
    </dl>
</div>
</div>
</ul>

</div>
</div>
<script type="text/javascript">
//隐藏收货地址列表
function hideAddrList(addr_id,true_name,address,phone) {
    $('#edit_reciver').show();
	$("#address_id").val(addr_id);
	$("#addr_list").html('<ul><li><span class="true-name">'+true_name+'</span><span class="address">'+address+'</span><span class="phone"><i class="icon-mobile-phone"></i>'+phone+'</span></li></ul>');
	$('.current_box').removeClass('current_box');
	ableOtherEdit();
	$('#edit_payment').click();
}
//加载收货地址列表
$('#edit_reciver').on('click',function(){
    $(this).hide();
    disableOtherEdit('如需修改，请先保存收货人信息 ');
    $(this).parent().parent().addClass('current_box');
    $('#addr_list').load(SITEURL+'/index.php?act=buy&op=load_addr');
});
//异步显示每个店铺运费 city_id计算运费area_id计算是否支持货到付款
function showShippingPrice(city_id,area_id) {
	$('#buy_city_id').val('');
    $.post(SITEURL + '/index.php?act=buy&op=change_addr', {'freight_hash':'F51pEsBnE4Mvxv4NWO_jeGucytUciiSYTEPPqg7GB_VrcXNfSQDVbKh5bc9GfKq_rSyPCFkMcO0FvSOL4RI2A4dRfaeNdeQU-OSOa_kHsCryXt9V5VLO8l3',city_id:city_id,'area_id':area_id}, function(data){
    	if(data.state == 'success') {
    	    $('#buy_city_id').val(city_id);
    	    $('#allow_offpay').val(data.allow_offpay);
            if (data.allow_offpay_batch) {
                var arr = new Array();
                $.each(data.allow_offpay_batch, function(k, v) {
                    arr.push('' + k + ':' + (v ? 1 : 0));
                });
                $('#allow_offpay_batch').val(arr.join(";"));
            }
    	    $('#offpay_hash').val(data.offpay_hash);
    	    $('#offpay_hash_batch').val(data.offpay_hash_batch);
    	    var content = data.content;
    	    var amount = 0;
            for(var i in content){
            	$('#eachStoreFreight_'+i).html(number_format(content[i],2));
            	amount = amount + parseFloat(content[i]);
            }
            calcOrder();
    	}

    },'json');
}
$(function(){
        $('#edit_reciver').click();
    });
</script>    
<div class="ncc-receipt-info" id="paymentCon">
  <div class="ncc-receipt-info-title">
    <h3>支付方式</h3>
        <a href="javascript:void(0)" nc_type="buy_edit" id="edit_payment" style="display: none;">[修改]</a><font color="#B0B0B0">如需修改，请先保存收货人信息 </font>
      </div>
  <div class="ncc-candidate-items">
    <ul>
      <li>在线支付</li>
    </ul>
  </div>
  <div id="payment_list" class="ncc-candidate-items" style="display:none">
    <ul>
      <li>
        <input type="radio" value="online" name="payment_type" id="payment_type_online">
        <label for="payment_type_online">在线支付</label>
      </li>
      <li>
        <input type="radio" value="offline" name="payment_type" id="payment_type_offline">
        <label for="payment_type_offline">货到付款</label>
        <a id="show_goods_list" style="display: none" class="ncc-payment-showgoods" href="javascript:void(0);"><i class="icon-truck"></i>货到付款 (<span data-cod-nums="offline">1</span>种商品) + <i class="icon-credit-card"></i>在线支付 (<span data-cod-nums="online">0</span>种商品)</a>
      </li>
    </ul>
    <div class="hr16"> <a href="javascript:void(0);" class="ncc-btn ncc-btn-red" id="hide_payment_list">保存支付方式</a></div>
  </div>
  <div id="ncc-payment-showgoods-list" class="ncc-payment-showgoods-list">
    <dl>
      <dt data-hideshow="offline">货到付款</dt>
      <dd data-hideshow="offline" data-cod2-type="offline">
                <div class="goods-thumb" data-cod2-store="1"><span><img src="/home/images/1_006647ec6ct1qb9ox___0-item_pic_60.jpg"></span></div>
              </dd>
      <dt data-hideshow="online">在线支付</dt>
      <dd data-hideshow="online" data-cod2-type="online">
              </dd>
    </dl>
  </div>
</div>

<!-- 在线支付和货到付款组合时，显示弹出确认层内容 -->
<div id="confirm_offpay_goods_list" style="display: none;">
  <dl class="ncc-offpay-list" data-hideshow="offline">
    <dt>以下商品支持<strong>货到付款</strong></dt>
    <dd>
      <ul data-cod-type="offline">
                <li data-cod-store="1"><span title="端羊2015夏装新款开衫女镂空薄短款针织披肩空调衫外套防晒衫女"><img src="/home/images/1_006647ec6ct1qb9ox___0-item_pic_60.jpg"></span></li>
              </ul>
      <label>
        <input type="radio" value="" checked="checked">
        货到付款
      </label>
    </dd>
  </dl>
  <dl class="ncc-offpay-list" data-hideshow="online">
    <dt>以下商品支持<strong>在线支付</strong></dt>
    <dd>
      <ul data-cod-type="online">
              </ul>
      <label>
        <input type="radio" value="" checked="checked">
        在线支付
      </label>
    </dd>
  </dl>

  <div class="tc mt10 mb10"><a href="javascript:void(0);" class="ncc-btn ncc-btn-orange" id="close_confirm_button">确认支付方式</a></div>
</div>
<script type="text/javascript">
$(function(){

var hybrid = 0;

var failInPage = false;

// 重新调整在线支付/到付的商品展示
var setCodGoodsShow = function() {
    var j = $('#allow_offpay_batch').val();
    var arr = {};
    if (j) {
        $.each(j.split(';'), function(k, v) {
            vv = v.split(':');
            arr[vv[0]] = vv[1] == '1' ? true : false;
        });
    }

    $.each(arr, function(k, v) {
        //console.log(''+k+':'+v);
        if (v) {
            $("[data-cod-type='online'] [data-cod-store='"+k+"']").appendTo("[data-cod-type='offline']");
            $("[data-cod-type='online'] [data-cod-store='"+k+"']").remove();

            $("[data-cod2-type='online'] [data-cod2-store='"+k+"']").appendTo("[data-cod2-type='offline']");
            $("[data-cod2-type='online'] [data-cod2-store='"+k+"']").remove();
        } else {
            $("[data-cod-type='offline'] [data-cod-store='"+k+"']").appendTo("[data-cod-type='online']");
            $("[data-cod-type='offline'] [data-cod-store='"+k+"']").remove();

            $("[data-cod2-type='offline'] [data-cod2-store='"+k+"']").appendTo("[data-cod2-type='online']");
            $("[data-cod2-type='offline'] [data-cod2-store='"+k+"']").remove();
        }
    });

    var off = $("[data-cod2-type='offline'] [data-cod2-store]").length;
    var on = $("[data-cod2-type='online'] [data-cod2-store]").length;

    $("[data-hideshow='offline']")[off ? 'show' : 'hide']();
    $("[data-hideshow='online']")[on ? 'show' : 'hide']();

    $("span[data-cod-nums='offline']").html(off);
    $("span[data-cod-nums='online']").html(on);

    failInPage = ! off;
    hybrid = off && on;

};

	//点击修改支付方式
    $('#edit_payment').on('click',function(){
        $('#edit_payment').parent().next().remove();
        $(this).hide();
        $('#paymentCon').addClass('current_box');
        $('#payment_list').show();
        disableOtherEdit('如需要修改，请先保存支付方式');
    });
    //保存支付方式
    $('#hide_payment_list').on('click',function(){
        var payment_type = $('input[name="payment_type"]:checked').val();
        if ($('input[name="payment_type"]:checked').size() == 0) return;

        setCodGoodsShow();

        //判断该地区(县ID)是否能货到付款
        if (payment_type == 'offline' && ($('#allow_offpay').val() == '0' || failInPage)) {
            showDialog('您目前选择的收货地区不支持货到付款!', 'error','','','','','','','','',2);return;
        }
        $('#payment_list').hide();
        $('#edit_payment').show();
		$('.current_box').removeClass('current_box');
        var content = (payment_type == 'online' ? '在线支付' : '货到付款');
        $('#pay_name').val(payment_type);

        if (payment_type == 'offline'){
            //如果混合支付（在线+货到付款）
            if (hybrid) {
                content = $('#show_goods_list').clone().html();
                $('#edit_payment').parent().after('<div class="ncc-candidate-items"><ul><li>您选择货到付款 + 在线支付完成此订单<br/><a href="javsacript:void(0);" id="show_goods_list" class="ncc-payment-showgoods">'+content+'</a></li></ul></div>');
                $('#show_goods_list').hover(function(){showPayGoodsList(this)},function(){$('#ncc-payment-showgoods-list').fadeOut()});
            } else {
                $('#edit_payment').parent().after('<div class="ncc-candidate-items"><ul><li>'+content+'</li></ul></div>');
                $('input[name="pd_pay"]').attr('checked',false);
                $('#pd_panel').hide();
            }
        }else{
            $('#edit_payment').parent().after('<div class="ncc-candidate-items"><ul><li>'+content+'</li></ul></div>');
            $('#pd_panel').show();
        }
        ableOtherEdit();
    });
    $('#show_goods_list').hover(function(){showPayGoodsList(this)},function(){$('#ncc-payment-showgoods-list').fadeOut()});
    function showPayGoodsList(item){
		var pos = $(item).position();
		var pos_x = pos.left+0;
		var pos_y = pos.top+25;
		$("#ncc-payment-showgoods-list").css({'left' : pos_x, 'top' : pos_y,'position' : 'absolute','display' : 'block'});
        $('#ncc-payment-showgoods-list').addClass('ncc-payment-showgoods-list').fadeIn();
    }
    $('input[name="payment_type"]').on('change',function(){
        if ($(this).val() == 'online'){
            $('#show_goods_list').hide();
        } else {

            setCodGoodsShow();

            //判断该地区(县ID)是否能货到付款
            if (($('#allow_offpay').val() == '0') || failInPage) {
                $('#payment_type_online').attr('checked',true);
                showDialog('您目前选择的收货地区不支持货到付款', 'error','','','','','','','','',2);return;
            }
            html_form('confirm_pay_type', '请确认支付方式', $('#confirm_offpay_goods_list').html(), 500,1);
            $('#show_goods_list').show();
        }
    });

    $('body').on('click','#close_confirm_button',function(){
        DialogManager.close('confirm_pay_type');
    });
})
</script>    
<script type="text/javascript">
//隐藏发票列表
function hideInvList(content) {
    $('#edit_invoice').show();
	$("#invoice_list").html('<ul><li>'+content+'</li></ul>');
	$('.current_box').removeClass('current_box');
	ableOtherEdit();
	//重新定位到顶部
	$("html, body").animate({ scrollTop: 0 }, 0);
}
//加载发票列表
$('#edit_invoice').on('click',function(){
    $(this).hide();
    disableOtherEdit('如需修改，请先保存发票信息');
    $(this).parent().parent().addClass('current_box');
    $('#invoice_list').load(SITEURL+'/index.php?act=buy&op=load_inv&vat_hash=PzvF-l4j1MoAsi6gjm2pc1jIBImnBSwABfp');
});
</script>    <style>
.ncc-table-style tbody tr.item_disabled td {
	background: none repeat scroll 0 0 #F9F9F9;
	height: 30px;
	padding: 10px 0;
	text-align: center;
}
</style>
<div class="ncc-receipt-info">
  <div class="ncc-receipt-info-title">
    <h3>商品清单</h3>
      </div>
  <table class="ncc-table-style">
    <thead>
      <tr>
        <th class="w20"></th>
        <th></th>
        <th>商品</th>
        <th class="w120">单价(元)</th>
        <th class="w120">数量</th>
        <th class="w120">小计(元)</th>
      </tr>
    </thead>
        <tbody>
      <tr>
          <div class="store-sale">
            </div></th>
      </tr>
{{--############ 开始 ##########--}}
@foreach($goods_list as $goods)
<tr id="cart_item_100001" class="shop-list ">
    <td> 
    </td>
    <td class="w60">
      <a href="{{url('goods')}}/{{$goods->goods_id}}" target="_blank" class="ncc-goods-thumb">
        <img src="{{$goods->goods_img}}" 
        alt=""></a></td>
    <td class="tl">
      <dl class="ncc-goods-info">
      <dt><a href="{{url('goods')}}/{{$goods->goods_id}}" target="_blank">
        {{$goods->goods_name}}
      </a></dt>
      </dl>
    </td>
      <td class="w120"><em>{{$goods->goods_price}}</em></td>
      <td class="w60">{{$goods->goods_num}}</td>
      <td class="w120">
      <em id="item100001_subtotal" nc_type="eachGoodsTotal">
        {{$goods->goods_price*$goods->goods_num}}元
      </em>
      </td>
      <td>
        
      </td>
  </tr>
  @endforeach
{{--#################  结束 ################--}}
<tr>
        <td class="w10"></td>
        <td class="tl" colspan="2">买家留言：
          <textarea name="message" class="ncc-msg-textarea" placeholder="选填：对本次交易的说明（建议填写已经和商家达成一致的说明）" title="选填：对本次交易的说明（建议填写已经和商家达成一致的说明）" maxlength="150"></textarea></td>
        <td class="tl" colspan="10"><div class="ncc-form-default"> </div></td>
      </tr>
      <tr>
        <td class="tr" colspan="20"><div class="ncc-store-account">
            <dl class="freight">
              <dt>运费：</dt>
              <dd><em id="eachStoreFreight_1">0.00</em>元</dd>
            </dl>
            <dl>
              <dt>商品金额：</dt>
              <dd><em id="eachStoreGoodsTotal_1">{{$total}}</em>元</dd>
            </dl>
            
            <!-- S voucher list -->

            
            <!-- E voucher list -->

            <dl class="total">
              <dt>本店合计：</dt>
              <dd><em store_id="1" nc_type="eachStoreTotal">{{$total}}</em>元</dd>
            </dl>
          </div></td>
      </tr>

    </tbody>
    <tfoot>
      <tr>
        <td colspan="20"><div class="ncc-all-account">订单总金额：<em id="orderTotal">{{$total}}</em>元</div></td>
      </tr>
    </tfoot>
  </table>
</div>
    <div>
       <input type="submit" value="提交订单"/>
    </div>
<script>
</form>
</div>﻿ 
<div id="faq">
  <div class="faq-wrapper">
      </div>
</div>
<div id="footer" class="wrapper">
  <p><a href="http://b2b2c.wrtx.cn/shop">首页</a>
                | <a href="http://b2b2c.wrtx.cn/shop/index.php?act=article&article_id=23">联系我们</a>
                | <a href="http://b2b2c.wrtx.cn/shop/index.php?act=article&article_id=24">招聘英才</a>
                | <a href="http://b2b2c.wrtx.cn/shop/index.php?act=article&article_id=25">合作及洽谈</a>
                | <a href="http://b2b2c.wrtx.cn/shop/index.php?act=article&article_id=22">关于我们</a>
                                        | <a href="http://b2b2c.wrtx.cn/shop/index.php?act=link">友情链接</a>
                                              </p><table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
        <tbody>
		
          <tr>
            <td align="middle" height="22">公司总部地址:<span class="css2">广东省广州市天河区国家软件园产业基地8栋502</span>&nbsp;&nbsp;&nbsp;联系电话：<span class="css2">020-34506590  13527894748</span></td>
          </tr>  <tr>
		  <td align="middle">企业法人营业执照注册号：440106000137161 版权证书软著登字第0830353号　登记号 2014SR161116</td>
          </tr><tr>
		  </tr>
            <tr><td align="middle" height="22">Copyright(c) 
              2000-2030 www.wrzc.net <span class="css2">广州网软志成信息科技有限公司</span> 版权所有、违法必究<a class="topmenu" href="http://b2b2c.wrtx.cn/admin/index.php" target="_blank">&nbsp;网站后台管理登录入口</a></td>
          </tr>
        </tbody>
      </table>
  <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1000200717'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s22.cnzz.com/z_stat.php%3Fid%3D1000200717%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"));</script><span id="cnzz_stat_icon_1000200717"><a href="http://www.cnzz.com/stat/website.php?web_id=1000200717" target="_blank" title="站长统计"><img border="0" hspace="0" vspace="0" src="/home/images/pic1.gif"></a></span><br>粤ICP备06122404号</div>
<script type="text/javascript" src="/home/js/jquery.cookie.js"></script>
<link href="/home/css/perfect-scrollbar.min.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/home/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/home/js/jquery.qtip.min.js"></script>

<link href="/home/css/jquery.qtip.min.css" rel="stylesheet" type="text/css">
<!-- 对比 -->
<script src="/home/js/compare.js"></script>
<script type="text/javascript">
$(function(){
	// Membership card
	$('[nctype="mcard"]').membershipCard({type:'shop'});
});
</script>
<script>
//提示信息
$('.tip').poshytip({
	className: 'tip-yellowsimple',
	showOn: 'hover',
	alignTo: 'target',
	alignX: 'center',
	alignY: 'top',
	offsetX: 0,
	offsetY: 5,
	allowTipHover: false
});
</script>


</body>
</html>